<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" id="viewport" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
	<title>支点财富</title>
	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" href="css/style.css">
	<!-- <script src="js/jquery.min.js"></script> -->
	<script src="js/jquery-1.7.2.min.js"></script>
	<script src="js/global.js"></script>
	<script src="js/angular-1.0.1.min.js"></script>
	<!-- <!–[if lt IE 9]>
		<script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script>
	<![endif]–> -->
	<script>
	var app=angular.module("tijiao",[]);
	app.controller('myCtrl',function($scope,$http){
		$scope.name="";
		$scope.mobile="";
		$scope.text="";
		$scope.add=function(){
			$http.post('http://www.21fax.com:8100/feedback/add/',{name:$scope.name,mobile:$scope.mobile,text:$scope.text},{'Content-Type':'application/x-www-form-urlencoded'}).then(function successCallback(response) {
	     if(response.data.status_code==200){
	     	$('.ser-con input').val('');
	     	$('.ser-con textarea').val('');
	     	$('.success').show();
	     	$('.light').children().attr({'src':'images/light1.png'});
			$('.light').children().css({'width':'83px','height':'91px','top':'40px','left':'350px'});
	     	$scope.result=response.data.status_code;

	     }
  }, function errorCallback(response) {
	  
	  alert(response.data);

  });
		}
	});
	</script>
</head>
<body ng-app="tijiao" ng-controller='myCtrl'>
	<div class="header-wrap">
		<div class="header">
			<div class="header-inner">
				<h2 class="logo"><a href="index.html"><img src="images/logo.png"></a></h2>
				<ul class="nav">
					<li><a href="index.html">首页</a></li>
					<li><a href="join.html">加入我们</a></li>
					<li><a href="contact.html">联系我们</a></li>
					<li><a href="idea.html" class="nav-last current">我有点子</a></li>
				</ul>
			</div>
		</div>
	</div>
	<!-- content -->
	<form>
		<div class="idea">
			<div class="idea-banner-wrap">
				<div class="idea-banner">
					<div class="light"><img src="images/light1.png" height="91" width="83" alt=""></div>
				</div>
			</div>
			<div class="idea-inner">
				<div class="success">感谢您的建议</div>
				<img src="images/idea-ser.png" height="111" width="882" alt="">
				<div class="service">
					<div class="float">
						<div class="ser-con ser-con2"><span>姓名</span><input type="text" ng-model='name'></div>
						<div class="ser-con ser-con3"><span>手机</span><input type="text" ng-model='mobile'></div>
					</div>
					<div class="ser-con"><span>建议</span><textarea name="" id="" cols="30" rows="10" ng-model='text' required oninvalid="setCustomValidity('请填写建议后提交');" ></textarea></div>
				</div>
				<button class="btn" ng-click="add()">提交</button>
			</div>
		</div>
	</form>
	<!-- footer -->
	<div class="footer">
		 <p>&copy; 2016 两点一线  All rights reserved   深圳两点一线互联网信息技术有限公司  粤ICP备16042840号-1<span class="code-b"><img src="images/codel.png" height="100" width="100" alt=""><br>微信关注我们</span></p>
	</div>
</body>
</html>